<!DOCTYPE html>
<html>

<head>
    <title>{$enterprise.ent_title} - 校友企业库 - {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$enterprise.ent_keywords},{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$enterprise.ent_title}：{$enterprise.ent_summary}">
    <include file="public@head" />
    <link href="__TMPL__/public/assets/css/schain.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/css/slippry/slippry.css" rel="stylesheet">
    <style type="text/css">
    .article-action-box {
        padding: 30px 0;
    }

    .like-action {
        width: 120px;
        margin: 0 auto;
    }

    .like-action .btn-default {
        background: transparent;
        color: #bbb;
        border-color: #eee;
    }

    .like-action .btn-default:hover {
        background: #ff9900;
        color: #ffffff;
        border-color: #ff9900;
    }

    .like-action a {
        font-size: 20px;
        display: block;
    }

    .sy-pager li {
        margin: 0 5px;
        width: 8px;
        height: 8px;
    }

    .sy-pager li.sy-active a{
        background-color: #ff9900;
    }
    </style>
</head>

<body class="body-gray">
    <include file="public@nav" />
    <php>
        $keywords = $enterprise['ent_keywords']; $tags = [];if(!empty($keywords)){ $tags = explode(',',$keywords); }
    </php>
        <div class="card bg-light mb-3">
            <div class="row card-body">
                <div class="col-md-8 enterprise-card vertical-line">
                    <div class="media">
                        <div class="media-left media-middle">
                            <empty name="enterprise.more.thumbnail">
                                <img src="/assets/dist/images/default-thumbnail.png" alt="{$enterprise.ent_title}" class="headicon" width="140">
                                <else/>
                                <img src="{:cmf_get_image_url($enterprise.more.thumbnail)}" alt="{$enterprise.ent_title}" class="headicon" width="140">
                            </empty>
                        </div>
                        <div class="media-body media-middle">
                            <h3 class="media-heading">{$enterprise.ent_title}</h3>
                            <div class="tags">
                                <span class="label label-primary">{$enterprise.ent_category}</span>
                                <foreach name="tags" item="vo">
                                    <span class="label label-warning">{$vo}</span>
                                </foreach>
                            </div>
                            <p class="signature" title="">{$enterprise.ent_summary}</p>
                            <div class="action">
                                <span class="published"><i class="fa  fa-calendar-plus-o"></i> {:date('Y-m-d', $enterprise.published_time)}</span>
                                <span class="location"><i class="fa fa-map-marker"></i> {$enterprise.ent_location}</span>
                            </div>
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h4 class="">基本信息</h4>
                        <hr>
                        <div class="row">
                            <div class="col-md-6">
                                <p><strong>企业名称：</strong>{$enterprise.ent_title}</p>
                                <p><strong>企业地址：</strong>{$enterprise.ent_address}</p>
                                <p><strong>企业标签：</strong>{$enterprise.ent_keywords}</p>
                                <!-- <p><strong>注册资本：</strong>{$enterprise.ent_capital} 万元</p> -->
                            </div>
                            <div class="col-md-6">
                                <p><strong>联系人：</strong>{$enterprise.ent_contacts}</p>
                                <p><strong>企业电话：</strong>{$enterprise.ent_tell}</p>
                                <p><strong>企业邮箱：</strong>{$enterprise.ent_email}</p>
                                <p><strong>企业网址：</strong>{$enterprise.ent_website}</p>
                            </div>
                        </div>
                        <br>
                        <h4>企业简介</h4>
                        <hr>
                        <p>{$enterprise.ent_content}</p>
                        <br>
                        <h4>企业图库</h4>
                        <hr>
                        <div>
                            <notempty name="enterprise.more.photos">
                                <ul id="gallery-slider" class="list-unstyled">
                                    <foreach name="$enterprise.more.photos" item="gallery">
                                        <li>
                                            <!-- <div class="caption-wraper">
                                                <div class="caption">{$gallery.name|default=''}</div>
                                            </div> -->
                                            <a href="javascript:void(0);"><img src="{:cmf_get_image_url($gallery.url)}" alt="" class="img-fluid"></a>
                                        </li>
                                    </foreach>
                                </ul>
                            </notempty>
                        </div>
                        <div class="article-action-box">
                            <div class="like-action">
                                <a href="{:cmf_url('schain/Enterprise/doLike',array('id'=>$enterprise['id']))}" class="js-count-btn btn-default btn"><i
                                    class="fa fa-thumbs-up"></i> <span class="count">{$enterprise.ent_like}</span> </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-12">
                <!-- <div class="panel panel-default">
                    <div class="panel-body">
                        <a href="{:cmf_url('schain/Enterprise/add')}" class="btn btn-block btn-primary"><i class="fa fa-address-card-o"></i> 校友企业申请入驻</a>
                    </div>
                </div> -->
                <div class="panel panel-default">
                    <div class="panel-heading bg-white">
                        <h3 class="panel-title">联系我们</h3>
                    </div>
                    <div class="panel-body">
                        <img src="/assets/dist/images/qrcode.jpg" class="img-fluid">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
    <include file="public@scripts" />
</body>

</html>